home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / bbs / pad321.zip / PHONE.CTL < prev    next >
Text File  |  1996-10-20  |  15KB  |  426 lines

  1. ; PHONE.CTL - sample phone control file - by Stefan Xenos
  2. ;
  3. ;       This file defines how the callback verifier treats
  4. ;       different phone numbers. You should edit it to
  5. ;       reflect your local calling area before using the
  6. ;       callback verifier. This file controls:
  7. ;
  8. ;       - Which numbers can be dialed without long distance
  9. ;         charges.
  10. ;       - Which long distance numbers should and should
  11. ;         not be called.
  12. ;       - Locked out phone numbers
  13. ;       - How many digits should be dialed for different
  14. ;         sets of phone numbers.
  15. ;
  16. ;       This file replaces the files LOCAL.CTL and LOCKOUT.CTL
  17. ;       which were required in versions 1.1 and earlier.
  18. ;
  19. ;       Format of this file:
  20. ;
  21. ;       - Comments begin with a semicolon (;).
  22. ;       - Every non-blank line either contains a keyword
  23. ;         or a phone number. Keywords all begin with a
  24. ;         number sign (#).
  25. ;       - Spaces, tabs, and the characters "()-" are
  26. ;         ignored in phone numbers, and may be used
  27. ;         for formatting.
  28. ;       - Underscores are ignored within keywords.
  29. ;         In keywords, upper and lower case letters
  30. ;         are treated identically.
  31. ;       - Most keywords can be specified more than once.
  32. ;         A phone number is always effected by the most recent
  33. ;         keyword specified.
  34. ;
  35. ;       Keywords used to define sections of this file:
  36. ;
  37. ;       Keyword:        Meaning:
  38. ;       --------------------------------------------------------------
  39. ;       #lockout        The phone numbers that follow should not
  40. ;                       be dialed under any circumstances. This
  41. ;                       should include emergency numbers, the numbers
  42. ;                       of harassing users, etc.
  43. ;
  44. ;       #local          The numbers that follow may be dialed without
  45. ;                       long distance charges.
  46. ;
  47. ;       #ld             The numbers that follow are long distance.
  48. ;                       The BBS will only dial these numbers if
  49. ;                       long distance phone numbers are enabled in
  50. ;                       CALLBACK.CTL.
  51. ;
  52. ;       #ld_lockout     The numbers that follow are long distance.
  53. ;                       The BBS will not dial these numbers, no
  54. ;                       matter what the settings in CALLBACK.CTL are.
  55. ;                       This is useful for preventing the BBS from
  56. ;                       dialing numbers in other countries, etc.
  57. ;                       I recommend putting the lines
  58. ;
  59. ;                               #ld_lockout
  60. ;                               *
  61. ;
  62. ;                       near the end of the file. This will cause
  63. ;                       all unknown phone numbers to be treated
  64. ;                       as being too long distance to dial.
  65. ;
  66. ;       #ask_local      Use this keyword to define a group of
  67. ;                       phone numbers which may or may not be
  68. ;                       local calls. If the user's phone number
  69. ;                       is found in the list, they will be asked
  70. ;                       if their number is a local call. If they
  71. ;                       answer yes, this behaves just like #local.
  72. ;                       Otherwise, it behaves just like #ld.
  73. ;
  74. ;       #end            Everything beyond this keyword is ignored
  75. ;                       This must appear at the end of the file.
  76. ;
  77. ;       Miscellaneous keywords:
  78. ;
  79. ;       Keyword:        Meaning:
  80. ;       --------------------------------------------------------------
  81. ;       #ld_prefix      Defines a prefix which is added to long
  82. ;                       distance numbers before dialing them.
  83. ;                       This is usually set to 1.
  84. ;
  85. ;       #ld_start       Defines the first digit to be dialed of
  86. ;                       the following long distance numbers.
  87. ;                       For example, specifying a value of 2
  88. ;                       will cause the first digit of the phone
  89. ;                       number to be skipped (the 2nd digit would
  90. ;                       be the first one dialed). Since every
  91. ;                       calling area I know of requires the entire
  92. ;                       phone number to be dialed for ld numbers,
  93. ;                       this should usually be set to 1.
  94. ;
  95. ;       #ld_len         Sets the number of digits to be dialed
  96. ;                       in the following long distance numbers.
  97. ;
  98. ;
  99. ;       #local_prefix   Defines a prefix which is added to local
  100. ;                       numbers before dialing them. This is
  101. ;                       usually left blank.
  102. ;
  103. ;       #local_start    Sets the first digit of local phone numbers
  104. ;                       to dial. For example: My area has 10 digit
  105. ;                       phone numbers. The last 7 digits are dialed
  106. ;                       for local calls. In my case, I set this to
  107. ;                       4 (the first digit being dialed is the 4th
  108. ;                       digit, skipping the 3 digit area code).
  109. ;
  110. ;       #local_len      Sets the number of digits to dial for local
  111. ;                       phone numbers.
  112. ;
  113. ;       #start_time     Defines the earliest time that callback verifications
  114. ;                       may be performed.
  115. ;
  116. ;       #end_time       Defines the latest time that callback verifications
  117. ;                       may be performed.
  118. ;
  119. ;       #write          The remainder of the line is written to the
  120. ;                       user's screen when and if that line is
  121. ;                       reached.
  122. ;
  123. ;       #city           The remainder of the line contains a city name.
  124. ;                       The following phone numbers are said to belong
  125. ;                       to this city. If the user's phone number matches
  126. ;                       any of the phone numbers that belong to this
  127. ;                       city, the city name will be displayed to the user.
  128. ;                       By default, padlock will also change the user's
  129. ;                       city name to the city that their phone number
  130. ;                       belongs to (although this behaviour can be
  131. ;                       turned on and off with the num_update_city token
  132. ;                       in SETTINGS.MH). You can end a city with either
  133. ;                       another #city token or an #end_city token.
  134. ;
  135. ;       #end_city       Defines the end of a city. 
  136. ;
  137. ;
  138. ;       Note: #ld_prefix, #ld_start, and #ld_len must be specified
  139. ;             before any long distance phone numbers are. Also,
  140. ;             #local_prefix, #local_start, and #local_len must
  141. ;             preceed any local phone numbers.
  142. ;
  143. ;       It is possible to define #local_len, #local_start, and
  144. ;       #local_prefix more than once in this file. This is useful
  145. ;       for sysops who live in an area where the number of digits
  146. ;       to be be dialed depends on the user's phone number. Sysops
  147. ;       who use phone extenders or some long distance plan (like
  148. ;       UniTel) that requires you to dial another phone number
  149. ;       before the user's number can use this to specify which
  150. ;       numbers should be dialed using that long distance carrier
  151. ;       and what the dialing prefix should be.
  152. ;
  153. ;       The following wildcards may be used for phone numbers:
  154. ;
  155. ;               *       Skip 0 or more characters.
  156. ;               ?       Skip 1 character
  157. ;               []      Match any one of the characters
  158. ;                       between the brackets.
  159. ;               !       Match anything but the following character
  160. ;                       If this is followed by the [] wildcard,
  161. ;                       it means match anything but the characters
  162. ;                       within the brackets.
  163. ;
  164. ;       Example:
  165. ;
  166. ;               If the user's phone number was 6132577636,
  167. ;               it would match with all of the following:
  168. ;
  169. ;               (613) 257-*
  170. ;               *
  171. ;               613257*
  172. ;               *7636
  173. ;               61325?-7636
  174. ;               61*36
  175. ;               (613) 257-7636
  176. ;               *257*
  177. ;               613*
  178. ;               6132577636*
  179. ;               61325[67]*
  180. ;               613!657*
  181. ;
  182. ;               it would match with none of the following:
  183. ;
  184. ;               (613) 257
  185. ;               257-7636
  186. ;               257*
  187. ;               819*
  188. ;               6132577636?
  189. ;               613257763[012345789]
  190. ;               613![123]577636
  191. ;
  192. ;       A user's phone number is compared with every phone number
  193. ;       in this file until a match is found. The first match that
  194. ;       is found is used, even if the user's phone number matches
  195. ;       with other numbers in the file. For example, if the user's
  196. ;       phone number was 6132577636:
  197. ;
  198. ;       #local
  199. ;       613*
  200. ;       #ld
  201. ;       6132577636
  202. ;       #lockout
  203. ;       *7636
  204. ;
  205. ;       The user's phone number would be considered local because
  206. ;       the first phone number it matched with is 613*, a local
  207. ;       number. If your file looked like:
  208. ;
  209. ;       #local
  210. ;       ???256*
  211. ;       #lockout
  212. ;       *7636
  213. ;       #ld
  214. ;       613*
  215. ;
  216. ;       The user would be locked out since the first number it matched
  217. ;       was *7636, a locked out phone number.
  218. ;
  219. ;       For this reason, it's often a good idea to put your locked out
  220. ;       phone numbers first, followed by local numbers and long distance
  221. ;       numbers.
  222. ;
  223. ;       Moving these comments to the end of the file may speed things
  224. ;       up a bit... the file access from Mex isn't terribly fast.
  225.  
  226.  
  227. ; Config ------------------------------------------------------------
  228. ;
  229. ;       These keywords MUST be specified before any phone numbers!
  230. ;       PADLOCK WILL NOT BE ABLE TO OPERATE IF THESE KEYWORDS ARE MISSING!
  231.  
  232. #local_start    4               ; The first digit to dial for local calls
  233. #local_len      7               ; The number of digits to dial for local calls
  234. #local_prefix                   ; Prefix to be added to all local numbers
  235.  
  236. #ld_prefix      1               ; Prefix to be added to all long distance numbers
  237. #ld_len         10              ; Number of digits to dial for long distance calls
  238. #ld_start       1               ; First digit to dial for long distance calls
  239.  
  240. ; Optional keywords -------------------------------------------------
  241.  
  242. ; The following two keywords define the earliest and latest times that callback
  243. ; verification may be performed for a set of phone numbers. The time format is:
  244. ;
  245. ;    hh:mm.ss
  246. ;
  247. ; where hh is the hour, mm is the minute, and ss is the second. mm and ss are
  248. ; optional and may be skipped. If these keywords are not specified, then
  249. ; callback verifications may be performed at any time of the day or night.
  250. ; These keywords are also useful for limiting calls to various long distance
  251. ; numbers to when long distance fees are cheapest. 
  252.  
  253. ;#local_start_time       10
  254. ;#local_end_time         22:30.00
  255. ;#ld_start_time          23:00
  256. ;#ld_end_time            23:30
  257.  
  258. ; Locked out phone numbers -----------------------------------------
  259.  
  260. #lockout                        ; The following phone numbers are locked out
  261. #write Scanning locked out phone numbers...
  262.  
  263. ; Provincial emergency numbers
  264. 911*                            ; 911
  265. ??? 747-1918                    ; Child abuse hotlines  (ottawa)
  266. ??? 776-6060                    ;                       (quebec)
  267. ??? 729-1119                    ; Distress centers
  268. ??? 238-3311
  269. ??? 722-4591
  270. ??? 733-6448
  271. ??? 741-6433
  272. ??? 238-2088
  273. ??? 729-8889                    ; Sexual assault victims
  274. ??? 234-2266
  275. ??? 745-4818                    ; Womens shelters
  276. ??? 745-3665
  277. ??? 234-5181
  278. ??? 747-0020
  279. ??? 225-3129
  280. ??? 789-8300
  281. ??? 563-0363                    ; Substance abuse
  282. ??? 737-1100                    ; Poison information center
  283. ??? 267-1373
  284. ??? 463-5060
  285. ??? 267-7270                    ; Marine and air search
  286. ??? 267-2677                    ; OPP
  287. ??? 267-2671
  288. ??? 267-8919
  289. ??? 267-8917
  290.  
  291. ; Local emergency numbers
  292.  
  293. ??? 257-2323                    ; Police
  294. ??? 257-4163                    ; Tips
  295. ??? 256-1234                    ; Fire
  296. ??? 257-2222
  297. ??? 257-1144
  298. ??? 267-2030
  299. ??? 259-2115
  300. ??? 624-5221
  301. ??? 256-2500                    ; Hospitals
  302. ??? 257-2200
  303. ??? 256-2489
  304. ??? 256-4444
  305. ??? 623-6561
  306. ??? 668-6868
  307. ??? 257-5960
  308. ??? 253-2034
  309. ??? 267-1373
  310. ??? 267-7270
  311.  
  312. ; Miscellaneous numbers
  313. *7371111                        ; Pizza pizza
  314. 1*                              ; Any long distance number
  315. 0*                              ; Operator assistance
  316. ??? 555*                        ; Any number starting with 555
  317. 800*                            ; Any toll free number
  318. 888*                            ; Ditto
  319. 900*                            ; Any 900 number
  320. ??? 976*                        ; Any 976 number
  321. ??? 230-0000                    ; Flat rate long distance number
  322.  
  323. ; Harassing users
  324.  
  325. ; Local calling area --------------------------------------------
  326.  
  327. #write Scanning local calling area...
  328.  
  329. ; Area 613 ------------------------------------------------------
  330.  
  331. #local                          ; The following numbers are local
  332. #write Area 613...              ; Display message to user
  333.  
  334. #city Almonte, Ontario
  335. (613) 256*
  336.  
  337. #city Carleton Place, Ontario
  338. (613) 25[37]*
  339.  
  340. #city Ottawa, Ontario
  341. (613) 22[4568]*
  342. (613) 23*
  343. (613) 24![0289]*
  344. (613) 25[367]*
  345. (613) 274*
  346. (613) 350*
  347. (613) 52[1369]*
  348. (613) 55[68]*
  349. (613) 56*
  350. (613) 580*
  351. (613) 59[345689]*
  352. (613) 660*
  353. (613) 72*
  354. (613) 73![25]*
  355. (613) 74![03]*
  356. (613) 75[05]*
  357. (613) 76[12359]*
  358. (613) 77![49]*
  359. (613) 78!4*
  360. (613) 79[014789]*
  361. (613) 82[089]*
  362. (613) 844*
  363. (613) 860*
  364. (613) 920*
  365. (613) 94[134567]*
  366. (613) 95[123467]*
  367. (613) 99!9*
  368. #endcity
  369.  
  370. ; Area 819 ------------------------------------------------------
  371.  
  372. #local                          ; The following numbers are local
  373. #write Area 819...              ; Display helpful message to user
  374.  
  375. #city Hull, Quebec
  376. (819) 22[4568]*
  377. (819) 23*
  378. (819) 24![0289]*
  379. (819) 25[367]*
  380. (819) 274*
  381. (819) 350*
  382. (819) 52[1369]*
  383. (819) 55[68]*
  384. (819) 56*
  385. (819) 580*
  386. (819) 59[345689]*
  387. (819) 660*
  388. (819) 72*
  389. (819) 73![25]*
  390. (819) 74![03]*
  391. (819) 75[05]*
  392. (819) 76[12359]*
  393. (819) 77![49]*
  394. (819) 78!4*
  395. (819) 79[014789]*
  396. (819) 82[089]*
  397. (819) 844*
  398. (819) 860*
  399. (819) 920*
  400. (819) 94[134567]*
  401. (819) 95[123467]*
  402. (819) 99!9*
  403. #endcity
  404.  
  405. ; Long distance numbers ----------------------------------------------------
  406.  
  407. #ld                             ; The numbers that follow are long distance.
  408. #city Stittsville
  409. (613) 258*                      ; Stittsville
  410. #endcity
  411.  
  412. ; Miscellaneous numbers ----------------------------------------------------
  413.  
  414. #ask_local                      ; 613 numbers not already listed may be new
  415. (613) *                         ; local extensions which have not yet been
  416.                                 ; added to the phone book. If this is the
  417.                                 ; case, ask the user if his/her number is
  418.                                 ; local.
  419.  
  420. #ld                             ; The same may be true for new 819 numbers,
  421. (819) *                         ; but it's much less likely, so consider
  422.                                 ; them long distance.
  423.  
  424. #end                            ; End of file. REQUIRED.
  425.  
  426.